package com.wzj.uarmor.exception;

import com.wzj.uarmor.utils.ResponseStatus;

/**
 * 业务异常
 *
 * @author Wanghw on 2022/8/11
 */
public class BusinessException extends RuntimeException{

    private ResponseStatus resultMsgEnum;

    public BusinessException() {
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    protected BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public BusinessException(ResponseStatus resultMsgEnum) {
        this.resultMsgEnum = resultMsgEnum;
    }

    public ResponseStatus getResultMsgEnum() {
        return resultMsgEnum;
    }
}
